package cn.bdqn.repository;

import cn.bdqn.entity.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class UserRepositoryTester {
    @Resource
    UserRepository userRepository;

    @Test
    public void testFindAll(){
        List<User> lists=userRepository.findAll();
        for (User list : lists) {
            System.out.println(list);
        }
    }
}
